package com.qianfeng.smartdevices.service;

import com.github.pagehelper.PageInfo;
import com.qianfeng.smartdevices.pojo.Areas;

import java.util.List;

public interface AreaService {
    List<Areas> findParentAreaByStatus(Long stauts);


    void addArea(Areas areas) throws Exception;
    PageInfo<Areas> findAllAreasByNameLikeAndStatusEquals(int page, int limit, String areaname, Long status,Long parentid);

    void updateArea(Areas areas);
    void deleteAreaById(Long[] ids);
    Areas getAreaById(Long id);
    List<Areas> getAreaByParentId(Long id);


}
